package com.ss.android.newmedia.message;

import android.content.Context;
import android.content.Intent;
import com.bytedance.common.plugin.interfaces.pushmanager.IPushLifeCycleListener;
import com.bytedance.common.plugin.interfaces.pushmanager.PushLifeCycleListenerProxy;
import java.util.ArrayList;
import java.util.List;

public final class r implements IPushLifeCycleListener {
    private static r a;
    private List<IPushLifeCycleListener> b;

    private r() {

        this.b = new ArrayList();
        this.b.add(PushLifeCycleListenerProxy.getInstance());
    }

    public static r a() {
        r v0_1;
        Class v1 = r.class;
        synchronized (v1){
            if(r.a == null) {
                r.a = new r();
            }

            v0_1 = r.a;
        }
        return v0_1;
    }

    public final void onNotifyDestroy() {
        int v1;
        for(v1 = 0; v1 < this.b.size(); ++v1) {
            this.b.get(v1).onNotifyDestroy();
        }
    }

    public final void onNotifyServiceCreate(Context arg3) {
        int v1;
        for(v1 = 0; v1 < this.b.size(); ++v1) {
            this.b.get(v1).onNotifyServiceCreate(arg3);
        }
    }

    public final void onNotifyServiceStart(Intent arg3) {
        int v1;
        for(v1 = 0; v1 < this.b.size(); ++v1) {
            this.b.get(v1).onNotifyServiceStart(arg3);
        }
    }
}

